package com.project.listener;

import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;

public class SessionDataPress implements HttpSessionAttributeListener {
    //共享数据添加时触发
    @Override
    public void attributeAdded(HttpSessionBindingEvent se) {
        System.out.println("属性添加");
    }
    //共享数据移除时触发
    @Override
    public void attributeRemoved(HttpSessionBindingEvent se) {
        System.out.println("属性移除");
    }
    //共享数据修改时触发
    @Override
    public void attributeReplaced(HttpSessionBindingEvent se) {
        System.out.println("属性修改");
    }
}
